package com.tanjun.mallservice.apiservice.request.plu;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.tanjun.common.utils.PathDeserializer;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

@Data
public class PluSkuVo {
    private Long skuId;
    /**
     * 规格1值
     */
    private String sku1Val;

    /**
     * 规格2值
     */
    private String sku2Val;

    /**
     * 规格3值
     */
    private String sku3Val;

    /**
     * 规格价格
     */
    @NotNull(message = "规格价格不能为空")
    private BigDecimal skuPrice;

    /**
     * 规格吊牌价格
     */
    @NotNull(message = "吊牌价不能为空")
    private BigDecimal skuTagPrice;

    /**
     * 规格是否可用  1：可用
     */
    @NotNull(message = "规格是否可用不能为空")
    private Boolean skuEnable;

    /**
     * 库存量
     */
    @NotNull(message = "库存量不能为空")
    private Integer skuStoreNum;

    @JsonDeserialize(using = PathDeserializer.class)
    private String skuIcoImg;

    @Size(max = 10, message = "规格轮播图片不能超过10个")
    @JsonDeserialize(contentUsing = PathDeserializer.class)
    private List<String> skuBannerImgList;

    private String skuDescInfo;
}
